package com.jz.digital.utils;

/**
 * ================================================
 * Created: WangYong
 * Date: 2024/11/25
 * Description:
 * ================================================
 */
public class AccountManagerHelper {
    private final static AccountManagerHelper instance = new AccountManagerHelper();
    private static String mUserId = SPHelper.getAccount();

    public static AccountManagerHelper getInstance(){
        return instance;
    }
    /**
     * 设置用户id
     */
    public void setUserId(String userId){
        mUserId = userId;
    }

    public String getUserId(){
        return mUserId;
    }

    /**
     * 退出登录
     */
    public static void exitLogin(){
        mUserId = "";
        SPHelper.saveLoginState(false);
    }
}
